package com.example.voucher.service.impl;

import java.util.Collections;
import java.util.List;

import com.example.voucher.entity.Voucher;
import com.example.voucher.extension.ExtensionImpl;
import com.example.voucher.service.VoucherItemConvertPostService;

@ExtensionImpl
public class DefaultVoucherItemConvertPostServiceImpl implements VoucherItemConvertPostService {

    @Override
    public void convertPost(List<Voucher> list) {
        Collections.sort(list, (t1, t2) -> t1.getEntryNum().compareTo(t2.getEntryNum()));
    }

}
